package com.example.client.product;

import com.timesheet.gui.efforttracker.views.EffortTrackerView;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	@Override
	public void createInitialLayout(IPageLayout layout) {
		/*	
			layout.setEditorAreaVisible(false);
			layout.setFixed(true);
			//layout.addFastView(SampleView.ID);
			
			
			
			
			layout.setEditorAreaVisible(false);
			
			String editorArea = layout.getEditorArea();
			layout.addStandaloneView(TimesheetView.ID,  false, IPageLayout.LEFT, 0.25f, editorArea );
			layout.addView(TaskView.ID, IPageLayout.RIGHT, 0.25f, editorArea );
			IFolderLayout folder = layout.createFolder("messages", IPageLayout.TOP, 0.5f, editorArea);
			//
			
			folder.addPlaceholder(EffortTrackerView.ID + ":*");
			//folder.addView(EffortTrackerView.ID);
			*/

		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		//addFastViews(layout);
		//addViewShortcuts(layout);
		//addPerspectiveShortcuts(layout);
		{
			IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.5f, editorArea);
			//folderLayout.addView(TaskView.ID);
			folderLayout.addView(EffortTrackerView.ID);
		}

	}
}
